package com.mud.mudcommune.view.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.ListView;

import com.mud.mudcommune.R;
import com.mud.mudcommune.adapter.BrowseRecordAdapter;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

public class RecodeBrowseActivity extends AppCompatActivity implements View.OnClickListener {
    @BindView(R.id.browse_record_listview)
    ListView recordListView;
    @BindView(R.id.recode_browse_back)
    ImageView recodeBrowseBack;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.browse_records);
        ButterKnife.bind(this);
        List list = new ArrayList();
        list.add("爱谁谁");
        BrowseRecordAdapter adapter = new BrowseRecordAdapter(list, this);
        recordListView.setAdapter(adapter);
        recodeBrowseBack.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.recode_browse_back:
                finish();//介绍activity
                break;
        }
    }

}
